using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tMenu : BusinessBase<uint>
    {
        #region Declarations

		private string _menuno = String.Empty;
		private string _menuname = String.Empty;
		private string _menuurl = String.Empty;
		private string _menuico = String.Empty;
		private string _menulevel = String.Empty;
		private uint _menuparent = default(UInt32);
		
		
		
		#endregion

        #region Constructors

        public tMenu() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_menuno);
			sb.Append(_menuname);
			sb.Append(_menuurl);
			sb.Append(_menuico);
			sb.Append(_menulevel);
			sb.Append(_menuparent);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Menuno
        {
            get { return _menuno; }
			set
			{
				OnMenunoChanging();
				_menuno = value;
				OnMenunoChanged();
			}
        }
		partial void OnMenunoChanging();
		partial void OnMenunoChanged();
		
		public virtual string Menuname
        {
            get { return _menuname; }
			set
			{
				OnMenunameChanging();
				_menuname = value;
				OnMenunameChanged();
			}
        }
		partial void OnMenunameChanging();
		partial void OnMenunameChanged();
		
		public virtual string Menuurl
        {
            get { return _menuurl; }
			set
			{
				OnMenuurlChanging();
				_menuurl = value;
				OnMenuurlChanged();
			}
        }
		partial void OnMenuurlChanging();
		partial void OnMenuurlChanged();
		
		public virtual string Menuico
        {
            get { return _menuico; }
			set
			{
				OnMenuicoChanging();
				_menuico = value;
				OnMenuicoChanged();
			}
        }
		partial void OnMenuicoChanging();
		partial void OnMenuicoChanged();
		
		public virtual string Menulevel
        {
            get { return _menulevel; }
			set
			{
				OnMenulevelChanging();
				_menulevel = value;
				OnMenulevelChanged();
			}
        }
		partial void OnMenulevelChanging();
		partial void OnMenulevelChanged();
		
		public virtual uint Menuparent
        {
            get { return _menuparent; }
			set
			{
				OnMenuparentChanging();
				_menuparent = value;
				OnMenuparentChanged();
			}
        }
		partial void OnMenuparentChanging();
		partial void OnMenuparentChanged();
		
        #endregion
    }
}
